import request from '../request'
// 登录
export function loginApi(data) {
    return request({
        url: '/login',
        method: 'post',
        data
    })
}
// 登出
export function logoutApi(data) {
    return request({
        url: '/logout',
        method: 'post',
        data
    })
}
// 个人信息
export function userInfoApi() {
    return request({
        url: '/userInfo',
        method: 'get',
    })
}
// 菜单
export function menuApi() {
    return request({
        url: '/menu',
        method: 'get',
    })
}
// 上传
export function uploadApi(data) {
    return request({
        url: '/upload',
        method: 'post',
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        data
    })
}